/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/30 9:15
 * @description:
 */
public class Two {

  public static void main(String[] args) {
    int x[] = {3, 4, 7};
    int[] y = new int[4];
    y[0] = 1;
    y[1] = 2;
    y[2] = x[2];


    System.out.println("数组y的所有元素");
    for (int i = 0; i < y.length; i++) {
      System.out.print(y[i] + "\t");
    }
    System.out.println();
    y=x;
    for (int i = 0; i < y.length; i++) {
      System.out.print(y[i] + "\t");
    }
    System.out.println();
  x[0]=10;
    System.out.println("y[0]="+y[0]);
  }

}
